﻿using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Mvc;
using Newtonsoft.Json.Linq;
using Zephyr.Core;
using Zephyr.Models;

namespace Zephyr.Areas.Sys.Controllers
{
    public class TesteekController : Controller
    {
        //
        // GET: /Sys/TestEEK/

        public ActionResult Index()
        {
            return View();
        }
    }
     public class TesteekApiController : ApiController
        {
            public dynamic Get(RequestWrapper request)
            {
                request.LoadSettingXmlString(@"
<settings defaultOrderBy='UserSeq'>
   <where>
        <field name='UserCode' cp='mapchild' extend='sys_userOrganizeMap,OrganizeCode,sys_organize' variable='OrganizeCode' ignoreEmpty='true'></field>
    </where>
</settings>");
                var service = new sys_userService();
                var result = service.GetModelListWithPaging(request.ToParamQuery());
                return result;
            }
           
        }
    
}
